home *** CD-ROM | disk | FTP | other *** search
- -- card: 3961 from stack: in
- -- bmap block id: 0
- -- flags: 4000
- -- background id: 3222
- -- name: Panic Button
- ----- HyperTalk script -----
- on OpenCard
- global attempt_Count,Frustrated
- put 0 into Frustrated
- put 1 into attempt_Count
- end OpenCard
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=86 top=315 right=337 bottom=186
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Panic Button
- ----- HyperTalk script -----
- on MouseEnter
- global panicbuttonh,panicbuttonw,attempt_Count
- put 25 into MaxCount
- if attempt_Count < MaxCount then
- put Round(Random(512-panicbuttonw)+panicbuttonw/2) into horiz
- put Round(Random(343-panicbuttonh)+panicbuttonh/2) into vert
- play "Boing"
- set Loc of button "Panic Button" of card 2 to horiz,vert
- put attempt_Count+1 into attempt_Count
- else
- visual effect wipe right slowly
- go card "Persistent"
- end if
- end MouseEnter
-
- on MouseUp
- visual effect wipe right
- go next
- end MouseUp
-